Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODStorageUnit


DeleteValue

The DeleteValue method deletes data from the currently focused value, starting at the offset (inclusive).

void DeleteValue (in ODULong length);
length
The number of bytes of data to delete, expressed as an unsigned 32-bit value.
DISCUSSION
You call this method to delete data from the currently focused value. If that value is a promise value, the promise is fulfilled before the data is deleted. This method starts deleting data at the current offset and stops after deleting the number of bytes specified by the length parameter or after reaching the end of the data in the currently focused value, whichever comes first.

EXCEPTIONS
kODErrUnfocusedStorageUnit
This storage unit is not focused on a value.
kODErrZeroRefCount
This storage unit has a reference count of 0.
SEE ALSO
The ODStorageUnit::InsertValue method (page 701).
The ODStorageUnit::Remove method (page 707).
"Manipulating the Data in a Value" on page 276 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help